"""
@-*- coding: utf-8 -*-
@ python：python 3.8
@ 创建人员：ylx
@ 创建时间：2025/3/5 下午4:50
@ 内容：
"""


# def my_function(name, *args):
#     print(f'hello,{name}')
#     print("Arguments passed as *args:", *args)
#     for a in args:
#         print(a)
#
#
# my_function('liming', 1,2,3)

# def my_function(name, **kwargs):
#     print(f'hello,{name}')
#     print("Arguments passed as **kwargs:", kwargs)
#     my_function_2(**kwargs)
def my_function(name, age, sex, country=None):
    print(f'hello,{name}')
    # print("Arguments passed as **kwargs:", kwargs)
    my_function_2(age, sex, country)


def my_function_2(age, sex, country=None):
    if country:
        print(age, sex, country)
    else:
        print(age, sex)


my_function('liming', country='china', sex='boy', age=18)
